﻿using Itenso.Solutions.Community.Rtf2Html;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Test
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            using (FileStream stream = File.Open(@"E:\rt.rtf", FileMode.Open))
            {
                using (StreamReader reader = new StreamReader(stream))
                {
                    string src = reader.ReadToEnd();
                    String html = RtfToHtml.ConvertString(src);
                }
            }
        }
    }
}
